<?php
namespace app\api\model;

/**
 * Created by PhpStorm.
 * User: muyu
 * Date: 2018/1/25
 * Time: 20:31
 */
class Category extends   BaseModel{
    public function img(){
        return $this->belongsTo('Image','topic_img_id','id');
    }
    protected $hidden = ['delete_time','description','update_time'];
}